import React, { Component } from 'react'
import { HashRouter as Router, Route } from 'react-router-dom'
import Home from '../router1/Home'
import About from '../router1/About'
import Topics from '../router1/Topics'
import Wrap from './Home'

class Router2 extends Component {

    render() {
        return (
            <Router>
                <Wrap>
                    <Route path="/" exact component={Home}></Route>
                    <Route path="/about" component={About}></Route>
                    <Route path="/topics" component={Topics}></Route>
                </Wrap>
            </Router>
        )
    }
}

export default Router2